<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hello');

// 前端路由
Route::get('/cate/<id>', 'Index/cate')->ext('html'); //分类页
Route::get('/detail/<id>', 'Index/detail')->ext('html'); //详情页

Route::get('/shop/', 'Index/shop'); //商城中心
Route::get('/skus/<pro_id>', 'Index/skus')->ext('html'); //商城中心
